<html>
<title>JS与Android间的交互</title>
<body>
hello world!</br>
<input type="button" value="callJS" onclick="callJS()"></br>
<input type="button" value="JsToAndroid" onclick="JsToAndroid()"></br>
<input type="button" value="打开另一Activity" onclick="jump()">
</body>
<script>
    function callJS(){
        alert("Android中调用js");
    }
    function getCircleArea(r){
        return Math.PI * r * r;
    }
    function JsToAndroid(){
        test.hello("summer");
    }
    function jump(){
        startAnotherActivity.jump();
    }
</script>
</html>